/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-03-28
 * Time: 21:45
 */
public class TestDemo {
    public static void main(String[] args) {
        int a=f(5);
        System.out.println(a);
    }
    public static int f(int n) {
        if(n==1)
            return 1;
        else
           return n*f(n-1);
    }
}
